import http from "@/utils/http";
import { bodyToQuery } from "@/utils/helper";
import type { FoegetpwdFormType } from "./params";
import type { FoegetpwdResponseData } from "./res";
import { headerCommon, headerMaster } from "../header";

// 标准写法
enum API {
  POST_FORGETPWD_API = "/1.1/requestPasswordReset",
}

// example
export const postForgetpwdApi = (data: FoegetpwdFormType) =>
  http.post<any, FoegetpwdResponseData>(API.POST_FORGETPWD_API, data,{headers: headerCommon});
